{template 'common/header'}
<div class="main">
	<form action="" method="post" class="form-horizontal form" id="setting-form">
    <div class="panel panel-default">
			<div class="panel-heading">参数设置</div>
			<div class="panel-body">
				<div class="tab-content">
					<div class="tab-pane  active" id="tab_basic" style="padding:20px;">
                      <!---->
                          <div class="form-group">
                                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">类型选择：</label>
                                    <div class="col-xs-12 col-sm-9">
                                       <label class="checkbox-inline">
                                          <input type="radio" name="lxtype"  value="0" {if $settings['lxtype'] == 0}checked{/if}> 积分
                                       </label>
                                       <label class="checkbox-inline">
                                          <input type="radio" name="lxtype"  value="1" {if $settings['lxtype'] == 1}checked{/if}> 余额
                                       </label>                     
                                        <span class="help-block" style="color:#ff0000"></span>
                                    </div>
                          </div>  
                          <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">中奖规则说明：</span>
                             
                                    <input type="text" name="detail" placeholder="建议在35字到40字之间"  value="{$settings['detail']}" class="form-control" />
                                </div>
                                
                           </div>
                          <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">三图不相同概率数：</span>
                                    <!--<input type="text" name="qian"  placeholder="如：1000" value="{$settings['qian']}" class="form-control" />
                                    <span class="input-group-addon">分之</span>  -->
                                    <input type="text" name="ji3" placeholder="如：10"  value="{$settings['ji3']}" class="form-control" />
                                </div>
                                <span class="help-block">概率为：三图不相同概率数/三图相同概率数和两图相同概率数和三图不相同概率数总和</span>
                           </div>
                          <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">三图相同中奖概率数：</span>
                                    <!--<input type="text" name="qian"  placeholder="如：1000" value="{$settings['qian']}" class="form-control" />
                                    <span class="input-group-addon">分之</span>  -->
                                    <input type="text" name="ji" placeholder="如：10"  value="{$settings['ji']}" class="form-control" />
                                </div>
                                <span class="help-block">概率为：三图相同概率数/三图相同概率数和两图相同概率数和三图不相同概率数总和</span>
                           </div>
                          <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">两图相同中奖概率数：</span>
                                    <!--<input type="text" name="qian2"  placeholder="如：1000" value="{$settings['qian2']}" class="form-control" />
                                    <span class="input-group-addon">分之</span>  -->
                                    <input type="text" name="ji2" placeholder="如：10"  value="{$settings['ji2']}" class="form-control" />
                                </div>
                                <span class="help-block">概率为：三图相同概率数/三图相同概率数和两图相同概率数和三图不相同概率数总和</span>
                           </div>
                           <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">两图相同奖励：(0或不设置取消两图奖励)</span>
                                    <input type="text" name="jl4"  placeholder="如：10" value="{$settings['jl4']}" class="form-control" />
                                </div>
                                <span class="help-block">两图相同奖励</span>
                           </div>
                           <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">每次扣：</span>
                                    <input type="text" name="jf"  placeholder="如：10" value="{$settings['jf']}" class="form-control" />
                                </div>
                                <span class="help-block">每玩一次扣多少</span>
                           </div>
                           <!-- 
                           <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">每天几次：</span>
                                    <input type="text" name="jhsum"  placeholder="如：3" value="{$settings['jhsum']}" class="form-control" />
                                   
                                </div>
                                <span class="help-block">每人每天只能玩几次机会</span>
                           </div>
                            -->
                           <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">失败跳转链接：</span>
                                    <input type="text" name="sburl"  placeholder="http://" value="{$settings['sburl']}" class="form-control" />
                                   
                                </div>
                           </div>
                      <!---->
					</div>
				</div>
			</div>
		</div>
		<div class="panel panel-default">
			<div class="panel-heading">图片设置</div>
			<div class="panel-body">
				<ul class="nav nav-tabs" id="myTab">
                    <li class="active" ><a href="#tab_share">三张图片</a></li>
                 
				</ul>
				<div class="tab-content">
					<div class="tab-pane  active" id="tab_basic">
                      <!---->
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">按钮名称：</label>
                            <div class="col-sm-10">
                              <input type="text" name="antitle"  placeholder="如：去兑换" value="{$settings['antitle']}" class="form-control" />
                              <span class="help-block">顶部右边按钮，如：去兑换</span>
                            </div>
                          </div>
                          <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">按钮链接：</label>
                            <div class="col-sm-10">
                              <input type="text" name="anlink"  placeholder="http://" value="{$settings['anlink']}" class="form-control" />
                              <span class="help-block">链接素材地址：http://pan.baidu.com/s/1bp608eN</span>
                            </div>
                          </div>
                          
                         <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">弹框提示单位：</label>
                            <div class="col-sm-10">
                              <input type="text" name="unit" value="{$settings['unit']}" class="form-control" />
                            </div>
                          </div>   
                          
                         <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">参与记录链接：</label>
                            <div class="col-sm-10">
                              <input type="text" name="historyurl"  placeholder="http://" value="{$settings['historyurl']}" class="form-control" />
                              <span class="help-block">参与记录页面地址：http://pan.baidu.com/s/1bp608eN</span>
                            </div>
                          </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">玩法介绍链接：</label>
                            <div class="col-sm-10">
                              <input type="text" name="ruleurl"  placeholder="http://" value="{$settings['ruleurl']}" class="form-control" />
                              <span class="help-block">玩法介绍页面地址：http://pan.baidu.com/s/1bp608eN</span>
                            </div>
                          </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">娱乐大厅链接：</label>
                            <div class="col-sm-10">
                              <input type="text" name="playcenterurl"  placeholder="http://" value="{$settings['playcenterurl']}" class="form-control" />
                              <span class="help-block">娱乐大厅地址：http://pan.baidu.com/s/1bp608eN</span>
                            </div>
                          </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">积分兑换链接：</label>
                            <div class="col-sm-10">
                              <input type="text" name="pointurl"  placeholder="http://" value="{$settings['pointurl']}" class="form-control" />
                              <span class="help-block">积分兑换页面地址：http://pan.baidu.com/s/1bp608eN</span>
                            </div>
                          </div>
                          
                          
                         <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">活动背景:</label>
                            <div class="col-sm-10">
                              {php echo tpl_form_field_image('bj',$settings['bj'])}
                              <span class="help-block">活动背景素材地址：http://pan.baidu.com/s/1bp608eN</span>
                            </div>
                          </div>
                          <br><br><br><br><br><br>
                          <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">图1:</label>
                            <div class="col-sm-10">
                              {php echo tpl_form_field_image('pic1',$settings['pic1'])}
                              <span class="help-block">尺寸：172*210 , .png格式</span>
                            </div>
                          </div>
                          <div class="form-group" style="width:70%;margin-left:130px;">
                                <div class="input-group">
                                    <span class="input-group-addon">三个相同（图1）奖励</span>
                                    <input type="text" name="jl1"  placeholder="如：1000" value="{$settings['jl1']}" class="form-control" />
                                    <!--<span class="input-group-addon">中奖概率：</span>
                                    <input type="text" name="qian1" placeholder="如：10"  value="{$settings['qian']}" class="form-control" />  -->
                                </div>
                                <span class="help-block">如：80%中奖概率 奖励200积分</span>
                           </div>
                          
                          <!-- <div class="form-group" style="width:70%;margin-left:130px;">
                                <div class="input-group">
                                    <span class="input-group-addon">两个相同（图1）奖励</span>
                                    <input type="text" name="2jl1"  placeholder="如：1000" value="{$settings['ji']}" class="form-control" />
                                    <span class="input-group-addon">中奖概率：</span>
                                    <input type="text" name="2qian1" placeholder="如：10"  value="{$settings['qian']}" class="form-control" />
                                </div>
                                <span class="help-block">如：80%中奖概率 奖励200积分</span>
                           </div> -->
            
                          
                          <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">图2:</label>
                            <div class="col-sm-10">
                              {php echo tpl_form_field_image('pic2',$settings['pic2'])}
                              <span class="help-block">尺寸：172*210 , .png格式</span>
                            </div>
                          </div>
                          <!--
                          <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">三个相同（图2）奖励</label>
                            <div class="col-sm-10">
                              <input type="text" name="jl2"  placeholder="" value="{$settings['jl2']}" class="form-control" />
                              <span class="help-block"></span>
                            </div>
                          </div>
                          
                          
                          <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">两个相同（图2）奖励</label>
                            <div class="col-sm-10">
                              <input type="text" name="2jl2"  placeholder="如：20" value="{$settings['jl1']}" class="form-control" />
                              <span class="help-block">如：两个相同的奖励20</span>
                            </div>
                          </div>
                          -->
                          <div class="form-group" style="width:70%;margin-left:130px;">
                                <div class="input-group">
                                    <span class="input-group-addon">三个相同（图2）奖励</span>
                                    <input type="text" name="jl2"  placeholder="如：1000" value="{$settings['jl2']}" class="form-control" />
                                    <!--<span class="input-group-addon">中奖概率：</span>
                                    <input type="text" name="qian2" placeholder="如：10"  value="{$settings['qian']}" class="form-control" />  -->
                                </div>
                                <span class="help-block">如：80%中奖概率 奖励200积分</span>
                           </div>
                          
                          <!--<div class="form-group" style="width:70%;margin-left:130px;">
                                <div class="input-group">
                                    <span class="input-group-addon">两个相同（图2）奖励</span>
                                    <input type="text" name="2jl2"  placeholder="如：1000" value="{$settings['ji']}" class="form-control" />
                                    <span class="input-group-addon">中奖概率：</span>
                                    <input type="text" name="2qian2" placeholder="如：10"  value="{$settings['qian']}" class="form-control" />
                                </div>
                                <span class="help-block">如：80%中奖概率 奖励200积分</span>
                           </div> -->
                          
   
                          <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">图3</label>
                            <div class="col-sm-10">
                              {php echo tpl_form_field_image('pic3',$settings['pic3'])}
                              <span class="help-block">尺寸：172*210 , .png格式</span>
                            </div>
                          </div>
                          <!--
                          <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">三个相同（图3）奖励</label>
                            <div class="col-sm-10">
                              <input type="text" name="jl3"  placeholder="" value="{$settings['jl3']}" class="form-control" />
                              <span class="help-block"></span>
                            </div>
                          </div>
                          
                          <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">两个相同（图3）奖励</label>
                            <div class="col-sm-10">
                              <input type="text" name="2jl3"  placeholder="如：20" value="{$settings['jl1']}" class="form-control" />
                              <span class="help-block">如：两个相同的奖励20</span>
                            </div>
                          </div>
                          -->
                          <div class="form-group" style="width:70%;margin-left:130px;">
                                <div class="input-group">
                                    <span class="input-group-addon">三个相同（图3）奖励</span>
                                    <input type="text" name="jl3"  placeholder="如：1000" value="{$settings['jl3']}" class="form-control" />
                                    <!-- <span class="input-group-addon">中奖概率：</span>
                                    <input type="text" name="qian3" placeholder="如：10"  value="{$settings['qian']}" class="form-control" /> -->
                                </div>
                                <span class="help-block">如：80%中奖概率 奖励200积分</span>
                           </div>
                          
                         <!--<div class="form-group" style="width:70%;margin-left:130px;">
                                <div class="input-group">
                                    <span class="input-group-addon">两个相同（图3）奖励</span>
                                    <input type="text" name="2jl3"  placeholder="如：1000" value="{$settings['ji']}" class="form-control" />
                                    <span class="input-group-addon">中奖概率：</span>
                                    <input type="text" name="2qian3" placeholder="如：10"  value="{$settings['qian']}" class="form-control" />
                                </div>
                                <span class="help-block">如：80%中奖概率 奖励200积分</span>
                           </div>  --> 
                      <!---->
					</div>
				</div>
			</div>
		</div>

        <div class="tab-pane" id="tab_param2">
						<!---->
                        <div class="panel panel-default">
                           <div class="panel-heading">
                             分享设置
                           </div>
                           <div class="panel-body">
                                   <div class="form-group">
                                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享标题</label>
                                        <div class="col-sm-9 col-xs-12">
                                            <input type="text" class="form-control" name="fxtitle1" value="{$settings['fxtitle1']}">
                                        </div>
                                    </div>	
                                     <div class="form-group">
                                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享图图</label>
                                        <div class="col-sm-9">
                                            {php echo tpl_form_field_image('fxpicurl1',$settings['fxpicurl1'])}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享介绍</label>
                                        <div class="col-sm-9 col-xs-12">
                                            <input type="text" class="form-control" name="fxdescription1" value="{$settings['fxdescription1']}">
                                        </div>
                                    </div>
                           </div>
                        </div>
                        <!---->
					</div>
        
		<div class="form-group col-sm-12">
			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
			<input type="hidden" name="token" value="{$_W['token']}" />
		</div>
	</form>
</div>
<script>
require(['jquery', 'util'], function($, u){
	$(function(){
		u.editor($('.richtext')[0]);
	});
});
$(function () {
		window.optionchanged = false;
		$('#myTab a').click(function (e) {
			e.preventDefault();//阻止a链接的跳转行为
			$(this).tab('show');//显示当前选中的链接及关联的content
		})
	});
</script>
{template 'common/footer'}